<%= form_for(@pagina) do |f| %>
<% if @pagina.errors.any? %>
<div class="row-fluid">
    <div id="error_explanation" class="span12">
        <h2><%= pluralize(@pagina.errors.count, "error") %> prohibited this pagina from being saved:</h2>

        <ul>
            <% @pagina.errors.full_messages.each do |msg| %>
            <li>
                <%= msg %>
            </li>
            <% end %>
        </ul>
    </div>
</div>
<% end %>

<div class="row-fluid">
    <div class="span2">
        <%= f.label :titulo %>
    </div>
    <div class="span10">
        <%= f.text_field :titulo %>
    </div>
</div>
<div class="row-fluid">
    <div class="span2">
        <%= f.label :detalhes %>
    </div>
    <div class="span10">
        <%= f.text_field :detalhes %>
    </div>
</div>
<div class="row-fluid">
    <div class="span2">
        <%= f.submit "Gravar", class: "btn" %>
<% end %>
